<template>
    <div>
        <div v-if="innerWidth > 500">
            <!-- <div class="fixed u-flex" v-if="show">
                <img class="hand" src="@/image/about/arrowWhite.png" @click="back" />
            </div> -->
            <div class="box">
                <div class="cont">
                    <img src="@/image/russia/logo.png" class="logo">
                    <div class="sea u-flex u-row-between">
                        <input type="text" v-model="keyWords" @keyup.enter="goPath(2)">
                        <div class="sea_zhan"></div>
                        <div class="sea_btn u-flex-center hand" @click="goPath(2)">
                            <img src="@/image/russia/search.png" class="sea_img">
                        </div>
                    </div>
                    <div class="array">
                        <div class="u-flex u-row-between">
                            <div>
                                <div class="text hand" @click="goPath(1)">
                                    <div class="num">1</div>
                                    行业数据分析
                                </div>

                                <div class="m-t-16 text hand" @click="goPath(2)">
                                    <div class="num">2</div> 俄罗斯企业进出口数据总汇
                                </div>
                            </div>
                            <div>
                                <div class="text hand" @click="goPath(3)">
                                    <div class="num">3</div> 行业调研报告
                                </div>
                                <div class="m-t-16 text hand" @click="goPath(4)">
                                    <div class="num">4</div>俄罗斯远东地区资政中心
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div v-else>
            <!-- 导航栏 -->
            <PhoHead></PhoHead>
            <div class="pho">
                <img src="@/image/russia/logo.png" class="logo">
                <div class="sea u-flex u-row-between">
                    <input type="text" v-model="keyWords" @keyup.enter="goPath(2)">
                    <div class="sea_zhan"></div>
                    <div class="sea_btn u-flex-center hand" @click="goPath(2)">
                        <img src="@/image/russia/search.png" class="sea_img">
                    </div>
                </div>
                <div class="array">
                    <div class="u-flex u-row-between">
                        <div>
                            <div class="text hand" @click="goPath(1)">
                                <div class="num">1</div>
                                行业数据分析
                            </div>
                            <div class="m-t-16 text hand" @click="goPath(2)">
                                <div class="num">2</div>
                                俄罗斯企业进出口数据总汇
                            </div>
                        </div>
                        <div>
                            <div class="text hand" @click="goPath(3)">
                                <div class="num">3</div>
                                行业调研报告
                            </div>
                            <div class="m-t-16 text hand" @click="goPath(4)">
                                <div class="num">4</div>
                                俄罗斯远东地区资政中心
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
// import * as Api from '@/api/vip'

export default {
    data() {
        return {
            keyWords: '',
            show: null,
            innerWidth: 0,
        }
    },
    mounted() {
        this.show = this.$route.query.type == 'index' ? true : false;
    },
    created() {
        this.innerWidth = window.innerWidth
    },
    methods: {
        goPath(type) {
            if (type == 1) {
                this.$router.push({ path: '/russia/industryData' })
            } else if (type == 2) {
                this.$router.push({ path: '/russia/table', query: { keyWords: this.keyWords }, })
            } else if (type == 3) {
                this.$router.push({ path: '/russia/list' })
            } else if (type == 4) {
                this.$router.push({ path: '/russia/book' })
            }
            //清空分页记录(多个页面)
            sessionStorage.setItem('categoryPage', '')
        },
        back() {
            this.$router.go(-1);
        },
    }
}
</script>
<style lang="less" scoped>
@media screen and (max-width: 1800px) {
    .cont {

        .logo {
            width: 320px !important;
            margin-bottom: 35px !important;
        }

        .array {
            padding-top: 50px !important;
        }
    }
}

@media screen and (max-width: 1700px) {
    .cont {
        width: 620px !important;

        .logo {
            width: 270px !important;
            margin-bottom: 30px !important;
        }

        .sea {

            input {
                height: 45px !important;
            }

            .sea_zhan {
                width: 55px !important;
                height: 45px !important;
            }

            .sea_btn {
                width: 55px !important;
                height: 45px !important;

                .sea_img {
                    width: 20px !important;
                }
            }
        }

        .array {
            font-size: 17px !important;
            padding-top: 45px !important;

            .m-t-16 {
                margin-top: 16px !important;
            }

            .text {

                .num {
                    margin-right: 10px !important;
                }
            }
        }
    }
}

@media screen and (max-width: 1600px) {
    .cont {
        width: 560px !important;

        .logo {
            width: 260px !important;
            margin-bottom: 25px !important;
        }

        .sea {

            input {
                height: 43px !important;
                padding: 0 18px !important;
                font-size: 15px !important;
            }

            .sea_zhan {
                width: 50px !important;
                height: 43px !important;
            }

            .sea_btn {
                width: 50px !important;
                height: 43px !important;

                .sea_img {
                    width: 18px !important;
                }
            }
        }

        .array {
            font-size: 15px !important;
            padding-top: 40px !important;

            .m-t-16 {
                margin-top: 15px !important;
            }

            .text {
                .num {
                    margin-right: 9px !important;
                }
            }
        }
    }
}

@media screen and (max-width: 1500px) {
    .cont {
        width: 530px !important;

        .logo {
            width: 240px !important;
            margin-bottom: 20px !important;
        }

        .sea {

            input {
                height: 38px !important;
                padding: 0 16px !important;
            }

            .sea_zhan {
                width: 45px !important;
                height: 38px !important;
            }

            .sea_btn {
                width: 45px !important;
                height: 38px !important;

                .sea_img {
                    width: 18px !important;
                }
            }
        }
    }
}

// 兼容1366
@media screen and (max-width: 1400px) {
    .fixed {
        top: 15px !important;
        left: 15px !important;

        img {
            width: 22px !important;
        }
    }

    .cont {
        width: 490px !important;

        .logo {
            width: 220px !important;
        }

        .sea {

            input {
                height: 36px !important;
                font-size: 14px !important;
            }

            .sea_zhan {
                height: 36px !important;
            }

            .sea_btn {
                height: 36px !important;
            }
        }

        .array {
            font-size: 14px !important;
            padding-top: 35px !important;

            .m-t-16 {
                margin-top: 13px !important;
            }

            .text {
                .num {
                    margin-right: 8px !important;
                }
            }
        }
    }
}

@media screen and (max-width: 1300px) {
    .cont {
        width: 450px !important;

        .logo {
            width: 190px !important;
        }

        .sea {

            input {
                height: 34px !important;
            }

            .sea_zhan {
                width: 43px !important;
                height: 34px !important;
            }

            .sea_btn {
                width: 43px !important;
                height: 34px !important;

                .sea_img {
                    width: 16px !important;
                }
            }
        }
    }
}

@media screen and (max-width: 1150px) {
    .cont {
        width: 420px !important;

        .logo {
            width: 170px !important;
            margin-bottom: 15px !important;
        }

        .sea {

            input {
                padding: 0 14px !important;
                font-size: 13px !important;
            }
        }

        .array {
            font-size: 13px !important;
            padding-top: 30px !important;

            .m-t-16 {
                margin-top: 11px !important;
            }

            .text {
                .num {
                    margin-right: 6px !important;
                }
            }
        }
    }
}

@media screen and (max-width: 1000px) {
    .fixed {
        top: 10px !important;
        left: 10px !important;

        img {
            width: 20px !important;
        }
    }

    .cont {
        width: 390px !important;

        .logo {
            width: 150px !important;
            margin-bottom: 15px !important;
        }

        .sea {

            input {
                height: 32px !important;
                font-size: 12px !important;
            }

            .sea_zhan {
                width: 38px !important;
                height: 32px !important;
            }

            .sea_btn {
                width: 38px !important;
                height: 32px !important;

                .sea_img {
                    width: 14px !important;
                }
            }
        }

        .array {
            font-size: 12px !important;

            .m-t-16 {
                margin-top: 10px !important;
            }

            .text {
                .num {
                    margin-right: 5px !important;
                }
            }
        }
    }
}

.fixed {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1;
    color: #fff;

    img {
        width: 25px;
        transform: rotate(180deg);
    }
}

.box {
    width: 100%;
    height: 100vh;
    position: relative;
    /* 设置图片路径 */
    background-image: url('../../image/russia/indexBg.png');
    /* 背景图片覆盖整个元素 */
    background-size: cover;
    /* 背景图片不重复 */
    background-repeat: no-repeat;
    /* 背景图片居中 */
    box-sizing: border-box;
    padding-top: 35vh;

    .cont {
        width: 746px;
        margin: 0 auto;
        text-align: center;

        .logo {
            width: 354px;
            height: auto;
            margin-bottom: 41px;
        }

        .sea {
            overflow: hidden;
            position: relative;
            border-radius: 30px;
            background: #fff;

            input {
                height: 53px;
                flex: 1;
                border: none;
                outline: none;
                padding: 0 20px;
                box-sizing: border-box;
                font-size: 16px;
            }

            .sea_zhan {
                width: 60px;
                height: 53px;
            }

            .sea_btn {
                width: 60px;
                height: 53px;
                position: absolute;
                right: 0px;
                top: 0px;
                bottom: 0px;

                .sea_img {
                    width: 23px;
                    height: auto;
                }
            }
        }

        .array {
            width: 100%;
            font-size: 18px;
            text-align: left;
            padding-top: 60px;

            .m-t-16 {
                margin-top: 19px;
            }

            .text {
                display: flex;
                align-items: center;

                .num {
                    color: #2F71D5;
                    font-weight: bold;
                    margin-right: 12px;
                }
            }
        }
    }
}

// 手机端
.pho {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 0;

    /* 设置图片路径 */
    background-image: url('../../image/russia/phoBg.png');
    /* 背景图片覆盖整个元素 */
    background-size: cover;
    /* 背景图片不重复 */
    background-repeat: no-repeat;
    /* 背景图片居中 */

    box-sizing: border-box;
    padding: 96px 15px 0;
    text-align: center;

    .logo {
        width: 159px;
        height: auto;
        margin-bottom: 18px;
    }

    .sea {
        overflow: hidden;
        position: relative;
        border-radius: 30px;
        background: #fff;

        input {
            height: 36px;
            flex: 1;
            border: none;
            outline: none;
            padding: 0 15px;
            box-sizing: border-box;
            font-size: 14px;
        }

        .sea_zhan {
            width: 45px;
            height: 36px;
        }

        .sea_btn {
            width: 45px;
            height: 36px;
            position: absolute;
            right: 0px;
            top: 0px;
            bottom: 0px;

            .sea_img {
                width: 20px;
                height: auto;
            }
        }
    }

    .array {
        width: 100%;
        font-size: 12px;
        text-align: left;
        padding-top: 42px;

        .m-t-16 {
            margin-top: 20px;
        }

        .text {
            display: flex;
            align-items: center;

            .num {
                color: #2F71D5;
                font-weight: bold;
                margin-right: 5px;
            }
        }
    }
}
</style>